package net.hctek.AnnouncerStation.bean;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Index;
import javax.persistence.Table;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;

@Entity @Table(name="AnnouncerStation_NAVS", 
indexes={@Index(columnList="NAVS_ID", name="IDX_NAVS_ID")})
@Cache(usage=CacheConcurrencyStrategy.READ_WRITE)
public class Navs  implements Serializable{

	private static final long serialVersionUID = 1L;
	
	/** 账号 */
	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	@Column(name="NAVS_ID")
	private Long navsId;
	
	/**标题*/
	@Column(name="NAVS_TITLE", length=50)
	private String navsTitle;
	
	/**标志*/
	@Column(name="NAVS_ICON",length=50)
	private String navsIcon;
	
	/**地址*/
	@Column(name="NAVS_HREF",length=200)
	private String navsHref;
	
	/**是否伸展*/
	@Column(name="NAVS_SPREAD")
	@org.hibernate.annotations.Type(type="yes_no")
	private Boolean navsSpread = false;



	public Long getNavsId() {
		return navsId;
	}

	public void setNavsId(Long navsId) {
		this.navsId = navsId;
	}

	public String getNavsTitle() {
		return navsTitle;
	}

	public void setNavsTitle(String navsTitle) {
		this.navsTitle = navsTitle;
	}

	public String getNavsIcon() {
		return navsIcon;
	}

	public void setNavsIcon(String navsIcon) {
		this.navsIcon = navsIcon;
	}

	public String getNavsHref() {
		return navsHref;
	}

	public void setNavsHref(String navsHref) {
		this.navsHref = navsHref;
	}

	public Boolean getNavsSpread() {
		return navsSpread;
	}

	public void setNavsSpread(Boolean navsSpread) {
		this.navsSpread = navsSpread;
	}

	@Override
	public String toString() {
		return "Navs [navsId=" + navsId + ", navsTitle=" + navsTitle + ", navsIcon=" + navsIcon + ", navsHref="
				+ navsHref + ", navsSpread=" + navsSpread + "]";
	}


	

	
	
}
